package com.pretty.common.utils;

import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonUtils {

    public static final Gson GSON_NO_NULL = new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.IDENTITY).create();
    public static Gson GSON_WITH_NULL = null;
    static {
        GsonBuilder gsonBuilder = new GsonBuilder();
        gsonBuilder.serializeNulls();
        GSON_WITH_NULL = gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.IDENTITY).create();
    }
}